package com.cal.utms.action.maintenance;

import com.cal.utms.dto.maintenance.CustomerJointApplicantDto;
import com.cal.utms.model.maintenance.CustomerModel;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class CustJointApplicantAction extends ActionSupport implements ModelDriven<CustomerJointApplicantDto> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private CustomerJointApplicantDto jointApplicantDto = new CustomerJointApplicantDto();
	private boolean success;
	private int customer_id;
	
	public String getJointApplicantByCusId(){
		CustomerModel customerModel = new CustomerModel();
		success = true;
		jointApplicantDto.setCustomerJointApplicantDtos(customerModel.getjointApplicant(customer_id));
		return Action.SUCCESS;
	}

	public CustomerJointApplicantDto getJointApplicantDto() {
		return jointApplicantDto;
	}

	public void setJointApplicantDto(CustomerJointApplicantDto jointApplicantDto) {
		this.jointApplicantDto = jointApplicantDto;
	}

	@Override
	public CustomerJointApplicantDto getModel() {
		return jointApplicantDto;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public int getCustomer_id() {
		return customer_id;
	}

	public void setCustomer_id(int customer_id) {
		this.customer_id = customer_id;
	}

}
